import request from '@/utils/request'

// 查询员工合同列表
export function listEmploy_contract(query) {
  return request({
    url: '/ehr/employ_contract/list',
    method: 'get',
    params: query
  })
}

// 查询员工合同详细
export function getEmploy_contract(contractId) {
  return request({
    url: '/ehr/employ_contract/' + contractId,
    method: 'get'
  })
}

// 新增员工合同
export function addEmploy_contract(data) {
  return request({
    url: '/ehr/employ_contract',
    method: 'post',
    data: data
  })
}

// 修改员工合同
export function updateEmploy_contract(data) {
  return request({
    url: '/ehr/employ_contract',
    method: 'put',
    data: data
  })
}

// 删除员工合同
export function delEmploy_contract(contractId) {
  return request({
    url: '/ehr/employ_contract/' + contractId,
    method: 'delete'
  })
}

// 提交员工合同审批
export function approvalEmploy_contract(data) {
  return request({
    url: '/ehr/employ_contract/approval',
    method: 'post',
    data: data
  })
}
